/*******************************************************************************
 * Copyright (c) 2009 Kevin Bierhoff and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Kevin Bierhoff - initial API and implementation
 *******************************************************************************/
package com.googlecode.twelfdevtools.twelfast;

class SourceLocation {
	
	private final int startRow;
	private final int startCol;
	private final int endRow;
	private final int endCol;

	/**
	 * Creates a source location with the given, <b>1-based</b> boundaries.
	 * @param startRow
	 * @param startCol
	 * @param endRow
	 * @param endCol
	 */
	public SourceLocation(int startRow, int startCol, int endRow, int endCol) {
		super();
		this.startRow = startRow;
		this.startCol = startCol;
		this.endRow = endRow;
		this.endCol = endCol;
	}

	/** Returns the 1-based start row */
	public int getStartRow() {
		return startRow;
	}

	/** Returns the 1-based start column */
	public int getStartColumn() {
		return startCol;
	}
	
	/** Returns the 1-based end row */
	public int getEndRow() {
		return endRow;
	}

	/** Returns the 1-based end column */
	public int getEndColumn() {
		return endCol;
	}
}
